using UnityEngine;
using System.Collections;

public class changeMatAfterClicking : MonoBehaviour 
{
	public Material changeMaterialTo;
	
	// Use this for initialization
	void Start () 
	{
		
	}
	
	// Update is called once per frame
	void Update () 
	{
		if(Input.GetMouseButtonDown(0))
		{
			gameObject.renderer.material = changeMaterialTo;
		}
	}
}
